package hu.rsc.forbiddenwords.client.util;

import com.google.gwt.user.client.rpc.AsyncCallback;

public abstract class SimpleCallback<T> implements AsyncCallback<T> {
    private static final String SERVER_ERROR = "An error occurred while attempting to contact the server. Please check your network connection and try again.";

    @Override
    public void onFailure(Throwable caught) {
	Logger.logError(SERVER_ERROR);
    }

}
